package me.helllp.bootman.common.services;

import org.apache.shiro.authz.SimpleRole;

public interface RoleService {
	/**
	 * 创建角色
	 * 
	 * @param role
	 * @return
	 */
    public SimpleRole createRole(SimpleRole role);
    
    /**
     * 删除角色
     * 
     * @param roleId
     */
    public void deleteRole(Long roleId);  
    
    /**
     * 添加角色-权限之间关系
     * 
     * @param roleId
     * @param permissionIds
     */
    public void correlationPermissions(Long roleId, Long... permissionIds);  
    
    /**
     * 移除角色-权限之间关系
     * 
     * @param roleId
     * @param permissionIds
     */
    public void uncorrelationPermissions(Long roleId, Long... permissionIds);
}
